﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PackageAdd.ascx.cs" Inherits="PayrollHR.Administration.Modules.PackageAdd" %>

<%@ Register Src="ToolTipLabelControl.ascx" TagName="ToolTipLabelControl" TagPrefix="uc1" %>

<%@ Register src="PackageInfo.ascx" tagname="PackageInfo" tagprefix="uc2" %>

<asp:UpdatePanel ID="upForumSubscriptions" runat="server">
    <ContentTemplate>
        <script type="text/javascript">
            function show(sender, e) {
                var txt = document.getElementById('<%=ctrlPackeInfo.FindControl("txtPackName").FindControl("txtValue").ClientID %>');
                if (txt.value == "") {
                    $find('<%=CustomerTabs.ClientID%>').set_activeTabIndex(0);
                }
            }
        </script>
        <div class="section-header">
            <div class="title">
                <img src="Common/ico-catalog.png" alt='<%=GetLocaleResourceString("Admin.Packe.AddPacke")%>' />
                <%=GetLocaleResourceString("Admin.Packe.AddPacke")%>
                <asp:Label runat="server" ID="lblTitle" />
                <a href="ListPackage.aspx" title='<%=GetLocaleResourceString("Admin.Packe.AddPacke")%>'>
                    <%=GetLocaleResourceString("Admin.Package.BackToPackageList")%>
                </a>
            </div>
            <div class="options">
                <asp:HyperLink ID="hlexport" runat="server" Target="_blank" ForeColor="#6600CC" Visible="False">[hlexport]</asp:HyperLink>
                <asp:Button ID="SaveButton" runat="server" Text="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Text %>"
                    ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveButton.Tooltip %>" CssClass="adminButtonBlue" OnClientClick="return show()" OnClick="SaveButton_Click" />
                <asp:Button ID="SaveAndStayButton" runat="server" CssClass="adminButtonBlue" Text="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Text %>" ToolTip="<% $PayrollResources:Admin.CustomerAdd.SaveAndStayButton.Tooltip %>"
                    OnClick="SaveAndStayButton_Click" OnClientClick="return show()" />
            </div>
        </div>
        <table class="adminContent">
            <tr runat="server" id="pnlYesNo">
                <td class="adminTitle">
                    <uc1:ToolTipLabelControl runat="server" ID="lblpnlYesNoTitle" Text="<% $PayrollResources:Admin.CustomerAdd.Mesage %>"
                        ToolTip="<% $PayrollResources:Admin.CustomerAdd.Mesage.Tooltip %>" ToolTipImage="~/Administration/Common/ico-help.gif" />
                </td>
                <td class="adminData">
                    &nbsp;</td>
                <td class="adminData">
                    &nbsp;</td>
            </tr>
        </table>
        <asp:Panel runat="server" ID="pnlSearchPopupPanel" Style="display: none; width: auto; height: auto; background-color: White; border-width: 2px; border-color: red; border-style: solid; padding: 10px;">
            <div style="text-align: center;">
                <div class="title">
                    <img src="Common/ico-customers.png" alt='<%=GetLocaleResourceString("Admin.CustomerAdd.PrintOption")%>' />
                    <%=GetLocaleResourceString("Admin.CustomerAdd.PrintOption")%>
                </div>
                <p></p>
                <p></p>
                <asp:Button ID="btnAssignOk" runat="server" Text="<% $PayrollResources:Admin.Common.OK %>"
                    CssClass="adminButtonBlue" CausesValidation="false" />
                <asp:Button ID="btnAssignCancel" runat="server" Text="<% $PayrollResources:Admin.Common.Cancel %>"
                    CssClass="adminButtonBlue" CausesValidation="false" />
            </div>
        </asp:Panel>
        <ajaxToolkit:TabContainer runat="server" ID="CustomerTabs" ActiveTabIndex="0">
            <ajaxToolkit:TabPanel runat="server" ID="pnlCustomerInfo" HeaderText="<% $PayrollResources:Admin.PackageAdd.PackageInfo %>">
                <ContentTemplate>
                    <asp:Label runat="server" ID="lblPackage" Text="<%$ PayrollResources:Admin.Package.PackageExist %>"
                        Visible="False" Font-Size="X-Large" ForeColor="#FF3300"></asp:Label>
                    <uc2:PackageInfo ID="ctrlPackeInfo" runat="server" />
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            

        </ajaxToolkit:TabContainer>        
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="SaveButton" />
        <asp:PostBackTrigger ControlID="SaveAndStayButton" />
    </Triggers>
</asp:UpdatePanel>
<asp:UpdateProgress ID="up1" runat="server" AssociatedUpdatePanelID="upForumSubscriptions">
    <ProgressTemplate>
        <div class="progress">
            <asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/UpdateProgress.gif"
                AlternateText="update" />
            <%=GetLocaleResourceString("Admin.Common.Wait...")%>
        </div>
    </ProgressTemplate>
</asp:UpdateProgress>
